home *** CD-ROM | disk | FTP | other *** search
- /*--------------------------------------------------------------------------*/
- /* */
- /* */
- /* ------------ Bit-Bucket Software <no-Inc> */
- /* \ 10001101 / Writers and Distributors of */
- /* \ 011110 / No-Cost<no-tm> Software. */
- /* \ 1011 / */
- /* ------ KopyRong (K) 1987. ALL RIGHTS REVERSED. */
- /* */
- /* */
- /* */
- /* */
- /* This software package is being distributed WITH FULL SOURCE CODE */
- /* with the following conditions: 1) If anything awful happens */
- /* because you use it (or don't use it), you accept full */
- /* responsibility; 2) you don't start making tons of voice calls to */
- /* the authors to complain or make suggestions about enhancements, */
- /* useful or otherwise; 3) you do not reuse this code in commercial */
- /* products without specific permission to do so from the authors; */
- /* 4) If you find any problems you send fixes to the authors for */
- /* inclusion in updates; 5) You find some way to express your */
- /* appreciation for this method of distribution, either by writing */
- /* code or application notes, or just sending along a "Thank You" */
- /* message. */
- /* */
- /* There is copyrighted code in this product. We either wrote it */
- /* ourselves or got permission to use it. Please don't force us to */
- /* pay a lawyer -- have some respect for our motives and don't abuse */
- /* this "license". */
- /* */
- /* */
- /*--------------------------------------------------------------------------*/
-
-
- /* Definitions for day of the week */
- #define DAY_SUNDAY 0x01
- #define DAY_MONDAY 0x02
- #define DAY_TUESDAY 0x04
- #define DAY_WEDNESDAY 0x08
- #define DAY_THURSDAY 0x10
- #define DAY_FRIDAY 0x20
- #define DAY_SATURDAY 0x40
- #define DAY_UNUSED 0x80
-
- #define DAY_WEEK (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
- #define DAY_WKEND (DAY_SUNDAY|DAY_SATURDAY)
-
- /* Definitions for matrix behavior */
- #define MAT_CM 0x0001
- #define MAT_DYNAM 0x0002
- #define MAT_BBS 0x0004
- #define MAT_NOREQ 0x0008
- #define MAT_OUTONLY 0x0010
- #define MAT_NOOUT 0x0020
- #define MAT_FORCED 0x0040
- #define MAT_LOCAL 0x0080
- #define MAT_SKIP 0x0100
-
- typedef struct _event {
- int days; /* Bit field for which days to execute */
- int minute; /* Minutes after midnight to start event */
- int length; /* Number of minutes event runs */
- int errlevel[5]; /* Errorlevel exits */
- int last_ran; /* Day of month last ran */
- int behavior; /* Behavior mask */
- int wait_time; /* Average number of seconds to wait between dials */
- int extra[5]; /* Extra space for later */
- } EVENT;
-